<!-- 库存台账 -->
<template>
  <div>
    <div>
      <el-tabs type="border-card">
        <el-tab-pane label="末期库存查询">
          <div class="cla_All">
            <stockAly :radio="1" :dataOne="AnalysisENDList"></stockAly>
          </div>
        </el-tab-pane>
        <el-tab-pane label="用料查询">
          <div class="cla_All">
            <stockAly :radio="2" :dataOne="AnalysiscolList"></stockAly>
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import stockAly from "@/components/StockAnalysis/index";
export default {
  components: { stockAly },
  data() {
    return {
      radio: "1",
      rad: 1,
      //末期库存查询 表头列表
      AnalysisENDList: [
        { name: "创建时间", prop: "endTime" },
        { name: "物料编码", prop: "stapCode" },
        { name: "物料名称", prop: "stapName" },
        { name: "库位", prop: "caseName" },
        { name: "物料数量", prop: "stapAmout" },
        { name: "物料归属组", prop: "deptName" },
        { name: "盘点人", prop: "empName" },
      ],
      // 用料查询 表头列表
      AnalysiscolList: [
        // { name: "门店", prop: "" },
        { name: "物料归属组", prop: "deptname" },
        { name: "物料编码", prop: "stapCode" },
        { name: "物料名称", prop: "stapName" },
        // { name: "昨日库存", prop: "" },
        { name: "物料用途", prop: "foodCode" },
        // { name: "物料规格", prop: "spec" },
        // { name: "物料单位(库位)", prop: "fpriceUnitIDfname" },
        // { name: "物料单位(核算)", prop: "fpriceUnitIDfname" },
        { name: "数量", prop: "sumquota" },
        { name: "金额", prop: "sumcost" },
        { name: "创建时间", prop: "createtime" },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.cla_All {
  // margin: 20px;
}
</style>
